<template>
    <div class="header">标题</div>
    <div class="body">
        <htx-use-v-bind-body />
    </div>
    <div class="footer"></div>
</template>
<script setup lang="ts">
import { provide, ref } from 'vue'
import HtxUseVBindBody from './HtxUse6V-BindBody.vue'

// v-bind绑定css，主题切换

const ithemColor = ref('pink')

provide('ithemColor', ithemColor)

</script>
<style scoped lang="scss">
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    text-align: center;
    line-height: 40px;
    background-color: v-bind(ithemColor);
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border: 1px solid v-bind(ithemColor);
    background-color: v-bind(ithemColor);
}
</style>